﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ZK.MyControl
{
    public partial class FrmMonthPicker : Form
    {
        public FrmMonthPicker()
        {
            InitializeComponent();
        }
        public DateTime Datetime { get; set; }

        private void FrmMonthCalendar_Load(object sender, EventArgs e)
        {
            ucMonthPicker1.Year = Datetime.Year;
            ucMonthPicker1.Month = Datetime.Month;
            ucMonthPicker1.CompletedClick += CompletedClick;
            
        }

        private void CompletedClick(object sender, EventArgs e)
        {
            Datetime = (DateTime)sender;
            this.Close();
        }

       
    }
}
